package org.esgi.util;

import java.io.File;

public class FilePlatform 
{
	public static String getCrossPlatformPath(File f)
	{
		if(f != null)
		{
			String filePath = StringEscaping.addPercentEscapes(f.getAbsolutePath());
			return ("file:///"+filePath).replace("\\", "/");
		}
		return null;
	}
}
